package com.service.impl;

import com.mapper.DepartmentMapper;
import com.pojo.Department;
import com.service.DepartmentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("departmentService")
public class DepartmentServiceImpl implements DepartmentService {
    @Resource
    private DepartmentMapper departmentMapper;

    @Override
    public Department searchByDepartment(String id) {
        return departmentMapper.get(id);
    }

    @Override
    public List<Department> list() {
        return departmentMapper.list();
    }
}
